import { Application } from 'express';
import userRouter from './api/controllers/users/router';
import commonRouter from './api/controllers/common/router';
import operationalRouter from './api/controllers/operational/router';

// 导出一个函数用于配置路由
export default function routes(app: Application): void {
  // 使用usersRouter路由模块处理以'/api//v1/users'开头的请求
  app.use('/api/v1/users', userRouter);
  app.use('/api/v1/common', commonRouter);
  app.use('/api/v1/operational', operationalRouter);
}
